/*
 * @Description: 描述信息
 * @Version: 版本号
 * @Author: xuebao
 * @Date: 2023-12-06 10:28:41
 * @LastEditors: renmengxue
 * @LastEditTime: 2023-12-06 10:30:27
 */
import { onUnmounted } from 'vue'

function useDomCreate(nodeId:string) {
    const node = document.createElement('div')// 创建一个div
    node.id = nodeId
    document.body.appendChild(node)
    onUnmounted(() => document.body.removeChild(node))
}
export default useDomCreate
